package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StoresRequisitionProductRecord;
import com.wing.cabinet.model.request.StoresRequisitionProductRecordForm;
import com.wing.cabinet.model.response.StoresRequisitionProductRecordVO;

import java.util.List;
import java.util.Map;

/**
 * 领新申请产品记录表-Service
 *
 * @author
 */
public interface StoresRequisitionProductRecordService extends IService<StoresRequisitionProductRecord> {

    /**
     * 添加
     *
     * @param storesRequisitionProductRecordForm
     * @return
     */
    int add(StoresRequisitionProductRecordForm storesRequisitionProductRecordForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StoresRequisitionProductRecordVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<StoresRequisitionProductRecordVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StoresRequisitionProductRecordVO get4appById(Long id);

    Integer getProductNeckQuantitySum(Long requisitionProductId,String skuCode);

    Integer sumReceivedApplyByTotalQuantity(Map<String, Object> params);
}
